package com.ysd.lis.controller.sta;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.dto.sta.StaModelDto;
import com.ysd.lis.dto.sta.StaModelParam;
import com.ysd.lis.dto.sta.StaModuleDto;
import com.ysd.lis.dto.sta.StaModuleParam;
import com.ysd.lis.entity.sta.StaModel;
import com.ysd.lis.entity.sta.StaModule;
import com.ysd.lis.service.sta.StaModelService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * cold_chain.sys_module 前端控制器
 * </p>
 *
 * @author prs
 * @since 2024-12-18
 */
@Api(tags = "标准模型")
@RestController
@RequestMapping("/lis/sta/staModel")
public class StaModelController extends BaseController {

    @Autowired
    StaModelService staModelService;
    @ApiOperation("不分页查询")
    @GetMapping("/findStaModelList")
    public Result findStaModelList(StaModelParam param){
        return staModelService.findStaModelList(param);
    }

    @ApiOperation("新增")
    @PostMapping("/addStaModel")
    public Result addStaModel(@RequestBody StaModel staModel){
        return  staModelService.addStaModel(staModel);
    }

    @ApiOperation("修改")
    @PostMapping("/editStaModel")
    public Result editStaModel(@RequestBody StaModel supplier) {
        return staModelService.editStaModel(supplier);
    }

    @ApiOperation("批量删除")
    @PostMapping("/batchDeleteStaModelList")
    public Result batchDeleteStaModelList(@RequestBody StaModelDto dto){
        return  staModelService.batchDeleteStaModelList(dto);
    }

}
